package com.ht.medicaltreatment.view

import android.content.Context
import com.ht.medicaltreatment.R
import com.xgst.lib.utils.TimeUtils
import kotlinx.android.synthetic.main.dialog_t_layout.*

class TostDialog(context: Context):BaseDialog(context,260f,300f) {
    override fun getLayoutRes() = R.layout.dialog_t_layout

    fun show(content:String){
        super.show()
        tvContent.text = content
        TimeUtils.countDownOneTime(4*1000,{
            dismiss()
        })
    }
}